package com.study.talk.entity;

public class ChatCache {
    private String createTime;

    private String name;
    private String avatar;

    private String lastContent;

    private Integer chatType;

    private Boolean isRead;

    private UserInfo userInfo;

    private GroupInfo groupInfo;


    public ChatCache() {
    }

    public ChatCache(String createTime, String avatar, String lastContent, Integer chatType, Boolean isRead, UserInfo userInfo, GroupInfo groupInfo) {
        this.createTime = createTime;
        this.avatar = avatar;
        this.lastContent = lastContent;
        this.chatType = chatType;
        this.isRead = isRead;
        this.userInfo = userInfo;
        this.groupInfo = groupInfo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ChatCache(String createTime, String name, String avatar, String lastContent, Integer chatType, Boolean isRead, UserInfo userInfo, GroupInfo groupInfo) {
        this.createTime = createTime;
        this.name = name;
        this.avatar = avatar;
        this.lastContent = lastContent;
        this.chatType = chatType;
        this.isRead = isRead;
        this.userInfo = userInfo;
        this.groupInfo = groupInfo;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getLastContent() {
        return lastContent;
    }

    public void setLastContent(String lastContent) {
        this.lastContent = lastContent;
    }

    public Integer getChatType() {
        return chatType;
    }

    public void setChatType(Integer chatType) {
        this.chatType = chatType;
    }

    public Boolean getRead() {
        return isRead;
    }

    public void setRead(Boolean read) {
        isRead = read;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public GroupInfo getGroupInfo() {
        return groupInfo;
    }

    public void setGroupInfo(GroupInfo groupInfo) {
        this.groupInfo = groupInfo;
    }
}
